import Vue from "vue";
import ElementUI from "element-ui";
import _ from "lodash";
import axios from "./util/http";
import utils from "./util/utils";
import "@/style/app.scss";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./registerServiceWorker";
const moment = require("moment");
import * as filters from './util/filters.js'
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})
Vue.config.productionTip = false;
Vue.use(ElementUI, {
  size: 'small',
})

import uploadCropper from "./components/uploadCropper";
Vue.component(uploadCropper.name, uploadCropper)
Vue.prototype.$axios = axios;
Vue.prototype._ = _;
Vue.prototype.$utils = utils;
Vue.prototype.$moment = moment;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
